// #define _CRTDBG_MAP_ALLOC
// #include <stdlib.h>
// #include <crtdbg.h>
#include "oGamePreDefine.h"
#include "main.h"

#include "AppDelegate.h"

int APIENTRY _tWinMain(HINSTANCE hInstance,
					   HINSTANCE hPrevInstance,
					   LPTSTR    lpCmdLine,
					   int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);
// 	_CrtMemState s1, s2, s3;
// 	_CrtMemCheckpoint( &s1 );
	// create the application instance
    AppDelegate app;
	CCApplication::sharedApplication()->run();
// 	_CrtMemCheckpoint( &s2 );
// 	if ( _CrtMemDifference( &s3, &s1, &s2 ))
// 		_CrtMemDumpStatistics( &s3 );
// 	_CrtDumpMemoryLeaks();
    return 0;
}
